package vivek.project.pocketmoney.common.utils
{
	import vivek.project.pocketmoney.common.utils.CommonConstants;

	public class Functions
	{

		public static function filterAccountType(item:Object):Boolean
		{
			var isMatch:Boolean=false
			if (item == CommonConstants.SELECT_ONE)
			{
				isMatch=true;
			}
			else if (item.am_accounttype == 3)
			{
				isMatch=true;
			}
			return isMatch;
		}

		public static function filterAssetType(item:Object):Boolean
		{
			var isMatch:Boolean=false
			if (item != CommonConstants.SELECT_ONE)
			{
				if (item.it_type == 1)
				{
					isMatch=true;
				}
			}
			return isMatch;
		}

		public static function filterCashAccountType(item:Object):Boolean
		{
			var isMatch:Boolean=false
			if (item == CommonConstants.SELECT_ONE)
			{
				isMatch=true;
			}
			else if (item.am_accounttype != 3)
			{
				isMatch=true;
			}
			return isMatch;
		}

		public static function filterSelectOne(item:Object):Boolean
		{
			var isMatch:Boolean=false;
			if (item == CommonConstants.SELECT_ONE)
			{
				isMatch=false;
			}
			else
				isMatch=true;
			return isMatch;
		}

		public function Functions()
		{
		}
	}
}